<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>window</title>
</head>
<body>


<div id="app">
   <a href="http://www.baidu.com" @click.prevent="haha">点我弹窗</a>
</div>


<script src="../node_modules/vue/dist/vue.js"></script>
<script>
    let app = new Vue({
            el: "#app",
            methods:{
                haha(){
                    alert(6665);
                }
            }

        })
    ;
</script>
</body>
</html>